<template>
    <div>
      <el-button type="primary" size="mini" @click="login">登录</el-button>
      <h1>
        LOGIN
      </h1>
    </div>
</template>

<script>
    export default {
      name: "Login",
      methods: {
        login: function () {
          let user = {
            id: 1,
            username: 'admin',
            mobile: '15708416652',
            email: 'lwentao@hotmail.com',
            sex: '男',
            age: 18,
            password: ''
          };
          this.$store.commit('login', user);
        }
      }
    }
</script>

<style scoped>

</style>
